#ifndef AUDIO_INTERFACE_H
#define AUDIO_INTERFACE_H

#include "Mutex.h"
#include "Thread.h"

#define SAMPLE_RATE 44100
#define FRAMES_PER_BUFFER 1024
#define CHANNELS 2

#define PI 3.14159265359
#define TWO_PI (PI*2)
#define PI_OVER_TWO (PI/2)
#define ROOT_TWO_OVER_TWO (sqrt((double)2.f)/(double)2)

//Base class for PAInterface

class AudioInterface : public Thread
{
public:
	AudioInterface() {};
	virtual bool Init(unsigned int sampleRate, bool interleaved) = 0;

protected:
	Mutex m_mutex;
};

#endif